<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>vphy: xvphy_intr.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.gif"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">vphy
   </div>
   <div id="projectbrief">Xilinx SDK Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_14bc92f4b96c8519b376567118ac28b3.html">drivers</a></li><li class="navelem"><a class="el" href="dir_4cf835fb5483fbdcb0e67167565ecb14.html">vphy</a></li><li class="navelem"><a class="el" href="dir_45dd16d915814f4bf44046109f2a3b22.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xvphy_intr.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><dl class="section note"><dt>Note</dt><dd>None.</dd></dl>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who  Date     Changes
----- ---- -------- -----------------------------------------------
1.0   als  10/19/15 Initial release.
</pre> </div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ab0c6c186dbb5142d23a6a3b76148c37b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xvphy__intr_8c.html#ab0c6c186dbb5142d23a6a3b76148c37b">XVphy_IntrEnable</a> (<a class="el" href="struct_x_vphy.html">XVphy</a> *InstancePtr, <a class="el" href="xvphy_8h.html#a87369c0a51fcd69621ccbbd44b64b470">XVphy_IntrHandlerType</a> Intr)</td></tr>
<tr class="separator:ab0c6c186dbb5142d23a6a3b76148c37b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a854725cac309c3302a25dbc29927c9f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xvphy__intr_8c.html#a854725cac309c3302a25dbc29927c9f8">XVphy_IntrDisable</a> (<a class="el" href="struct_x_vphy.html">XVphy</a> *InstancePtr, <a class="el" href="xvphy_8h.html#a87369c0a51fcd69621ccbbd44b64b470">XVphy_IntrHandlerType</a> Intr)</td></tr>
<tr class="separator:a854725cac309c3302a25dbc29927c9f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56237326dcb3ef7cb3b346f7bf561486"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xvphy__intr_8c.html#a56237326dcb3ef7cb3b346f7bf561486">XVphy_SetIntrHandler</a> (<a class="el" href="struct_x_vphy.html">XVphy</a> *InstancePtr, <a class="el" href="xvphy_8h.html#a87369c0a51fcd69621ccbbd44b64b470">XVphy_IntrHandlerType</a> HandlerType, <a class="el" href="xvphy_8h.html#a21fe7ac2940a12aa24d265c30d02b1aa">XVphy_IntrHandler</a> CallbackFunc, void *CallbackRef)</td></tr>
<tr class="separator:a56237326dcb3ef7cb3b346f7bf561486"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75e14bbc2dcc8eeeaaed26371ae1b34c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xvphy__intr_8c.html#a75e14bbc2dcc8eeeaaed26371ae1b34c">XVphy_InterruptHandler</a> (<a class="el" href="struct_x_vphy.html">XVphy</a> *InstancePtr)</td></tr>
<tr class="separator:a75e14bbc2dcc8eeeaaed26371ae1b34c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a75e14bbc2dcc8eeeaaed26371ae1b34c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVphy_InterruptHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_vphy.html">XVphy</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function is the interrupt handler for the <a class="el" href="struct_x_vphy.html" title="The XVphy driver instance data. ">XVphy</a> driver. </p>
<p>It will detect what kind of interrupt has happened, and will invoke the appropriate callback function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_vphy.html" title="The XVphy driver instance data. ">XVphy</a> instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_vphy___config.html#a7faad17b4e5499340323e06281c3e4d1">XVphy_Config::BaseAddr</a>, <a class="el" href="struct_x_vphy.html#a45ad21128fb62d2f120e92ae3488c32c">XVphy::Config</a>, <a class="el" href="struct_x_vphy.html#a78f1447de2a15b155b4c37a4c48d18ef">XVphy::IntrCpllLockCallbackRef</a>, <a class="el" href="struct_x_vphy.html#aac25792acca694d5198b44057d468659">XVphy::IntrCpllLockHandler</a>, <a class="el" href="struct_x_vphy.html#ae35b9b8e21753a733fc6a64de937fab9">XVphy::IntrQpll1LockCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a43d707dcd37c99e8f4a13779809edee5">XVphy::IntrQpll1LockHandler</a>, <a class="el" href="struct_x_vphy.html#a5d0d31870d751cc585d9a90c164f2d05">XVphy::IntrQpllLockCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a2a358f3a7cf0bbd672855ffb800e88a4">XVphy::IntrQpllLockHandler</a>, <a class="el" href="struct_x_vphy.html#a91765301698027208a5e14a289a19bd8">XVphy::IntrRxClkDetFreqChangeCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a69217170e845bb0d704c8759f8688ab5">XVphy::IntrRxClkDetFreqChangeHandler</a>, <a class="el" href="struct_x_vphy.html#abda4548141cf7abc027a15218e115353">XVphy::IntrRxResetDoneCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a1d808488e0bf84f52d6eb206d54d829b">XVphy::IntrRxResetDoneHandler</a>, <a class="el" href="struct_x_vphy.html#a4f3c598dab04ba6e7d6755455c3b7903">XVphy::IntrRxTmrTimeoutCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a61a97adc3d836e2f20afb8e64f249b11">XVphy::IntrRxTmrTimeoutHandler</a>, <a class="el" href="struct_x_vphy.html#a7998e37ae7d71fdb5d398550a6211305">XVphy::IntrTxAlignDoneCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a0592d2a7a5360d294727c54491fa059d">XVphy::IntrTxAlignDoneHandler</a>, <a class="el" href="struct_x_vphy.html#aeef6168da79e23e5fca31e71cb9ae879">XVphy::IntrTxClkDetFreqChangeCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a44b541b34c508c723906b26f8fbb4719">XVphy::IntrTxClkDetFreqChangeHandler</a>, <a class="el" href="struct_x_vphy.html#ab6884b1d31e8d33370b88e74c8c0674d">XVphy::IntrTxResetDoneCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a21cbba76df25e8dfe4111d1222e14872">XVphy::IntrTxResetDoneHandler</a>, <a class="el" href="struct_x_vphy.html#a3018ebe77f98e3feb4535bf837571564">XVphy::IntrTxTmrTimeoutCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a2c2b7c102aa0e9b5fe81b31a77174dbf">XVphy::IntrTxTmrTimeoutHandler</a>, <a class="el" href="struct_x_vphy.html#a350b0f93bf83f2b3178e46e11936aa7f">XVphy::IsReady</a>, and <a class="el" href="xvphy__hw_8h.html#a4efa6fb68e702bd91a3fb099d7ba0188">XVphy_ReadReg</a>.</p>

</div>
</div>
<a class="anchor" id="a854725cac309c3302a25dbc29927c9f8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVphy_IntrDisable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_vphy.html">XVphy</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#a87369c0a51fcd69621ccbbd44b64b470">XVphy_IntrHandlerType</a>&#160;</td>
          <td class="paramname"><em>Intr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function disabled interrupts associated with the specified interrupt type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_vphy.html" title="The XVphy driver instance data. ">XVphy</a> instance. </td></tr>
    <tr><td class="paramname">Intr</td><td>is the interrupt type/mask to disable.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_vphy___config.html#a7faad17b4e5499340323e06281c3e4d1">XVphy_Config::BaseAddr</a>, <a class="el" href="struct_x_vphy.html#a45ad21128fb62d2f120e92ae3488c32c">XVphy::Config</a>, <a class="el" href="xvphy__hw_8h.html#a4efa6fb68e702bd91a3fb099d7ba0188">XVphy_ReadReg</a>, and <a class="el" href="xvphy__hw_8h.html#a03d7c5c126a6c25d1ed193dfaa7f4a2c">XVphy_WriteReg</a>.</p>

<p>Referenced by <a class="el" href="xvphy__dp_8c.html#a2cd0f5a7bf8d8fb14c73dff670c3c998">XVphy_DpInitialize()</a>, and <a class="el" href="xvphy__hdmi_8c.html#acd09bca6664c614b29cf051367729ea3">XVphy_HdmiInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="ab0c6c186dbb5142d23a6a3b76148c37b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVphy_IntrEnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_vphy.html">XVphy</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#a87369c0a51fcd69621ccbbd44b64b470">XVphy_IntrHandlerType</a>&#160;</td>
          <td class="paramname"><em>Intr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function enables interrupts associated with the specified interrupt type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the <a class="el" href="struct_x_vphy.html" title="The XVphy driver instance data. ">XVphy</a> instance. </td></tr>
    <tr><td class="paramname">Intr</td><td>is the interrupt type/mask to enable.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_vphy___config.html#a7faad17b4e5499340323e06281c3e4d1">XVphy_Config::BaseAddr</a>, <a class="el" href="struct_x_vphy.html#a45ad21128fb62d2f120e92ae3488c32c">XVphy::Config</a>, <a class="el" href="xvphy__hw_8h.html#a4efa6fb68e702bd91a3fb099d7ba0188">XVphy_ReadReg</a>, and <a class="el" href="xvphy__hw_8h.html#a03d7c5c126a6c25d1ed193dfaa7f4a2c">XVphy_WriteReg</a>.</p>

<p>Referenced by <a class="el" href="xvphy__hdmi_8c.html#acd09bca6664c614b29cf051367729ea3">XVphy_HdmiInitialize()</a>.</p>

</div>
</div>
<a class="anchor" id="a56237326dcb3ef7cb3b346f7bf561486"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XVphy_SetIntrHandler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_vphy.html">XVphy</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#a87369c0a51fcd69621ccbbd44b64b470">XVphy_IntrHandlerType</a>&#160;</td>
          <td class="paramname"><em>HandlerType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xvphy_8h.html#a21fe7ac2940a12aa24d265c30d02b1aa">XVphy_IntrHandler</a>&#160;</td>
          <td class="paramname"><em>CallbackFunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>CallbackRef</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function installs a callback function for the specified handler type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>is a pointer to the XVPhy instance. </td></tr>
    <tr><td class="paramname">HandlerType</td><td>is the interrupt handler type which specifies which interrupt event to attach the callback for. </td></tr>
    <tr><td class="paramname">CallbackFunc</td><td>is the address to the callback function. </td></tr>
    <tr><td class="paramname">CallbackRef</td><td>is the user data item that will be passed to the callback function when it is invoked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_vphy.html#a78f1447de2a15b155b4c37a4c48d18ef">XVphy::IntrCpllLockCallbackRef</a>, <a class="el" href="struct_x_vphy.html#aac25792acca694d5198b44057d468659">XVphy::IntrCpllLockHandler</a>, <a class="el" href="struct_x_vphy.html#ae35b9b8e21753a733fc6a64de937fab9">XVphy::IntrQpll1LockCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a43d707dcd37c99e8f4a13779809edee5">XVphy::IntrQpll1LockHandler</a>, <a class="el" href="struct_x_vphy.html#a5d0d31870d751cc585d9a90c164f2d05">XVphy::IntrQpllLockCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a2a358f3a7cf0bbd672855ffb800e88a4">XVphy::IntrQpllLockHandler</a>, <a class="el" href="struct_x_vphy.html#a91765301698027208a5e14a289a19bd8">XVphy::IntrRxClkDetFreqChangeCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a69217170e845bb0d704c8759f8688ab5">XVphy::IntrRxClkDetFreqChangeHandler</a>, <a class="el" href="struct_x_vphy.html#abda4548141cf7abc027a15218e115353">XVphy::IntrRxResetDoneCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a1d808488e0bf84f52d6eb206d54d829b">XVphy::IntrRxResetDoneHandler</a>, <a class="el" href="struct_x_vphy.html#a4f3c598dab04ba6e7d6755455c3b7903">XVphy::IntrRxTmrTimeoutCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a61a97adc3d836e2f20afb8e64f249b11">XVphy::IntrRxTmrTimeoutHandler</a>, <a class="el" href="struct_x_vphy.html#a7998e37ae7d71fdb5d398550a6211305">XVphy::IntrTxAlignDoneCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a0592d2a7a5360d294727c54491fa059d">XVphy::IntrTxAlignDoneHandler</a>, <a class="el" href="struct_x_vphy.html#aeef6168da79e23e5fca31e71cb9ae879">XVphy::IntrTxClkDetFreqChangeCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a44b541b34c508c723906b26f8fbb4719">XVphy::IntrTxClkDetFreqChangeHandler</a>, <a class="el" href="struct_x_vphy.html#ab6884b1d31e8d33370b88e74c8c0674d">XVphy::IntrTxResetDoneCallbackRef</a>, <a class="el" href="struct_x_vphy.html#a21cbba76df25e8dfe4111d1222e14872">XVphy::IntrTxResetDoneHandler</a>, <a class="el" href="struct_x_vphy.html#a3018ebe77f98e3feb4535bf837571564">XVphy::IntrTxTmrTimeoutCallbackRef</a>, and <a class="el" href="struct_x_vphy.html#a2c2b7c102aa0e9b5fe81b31a77174dbf">XVphy::IntrTxTmrTimeoutHandler</a>.</p>

<p>Referenced by <a class="el" href="xvphy__hdmi__intr_8c.html#ae15dd969c04b2c4fc7dd4266959af171">XVphy_HdmiIntrHandlerCallbackInit()</a>.</p>

</div>
</div>
</div><!-- contents -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Copyright &copy; 2015 Xilinx Inc. All rights reserved.</li>
  </ul>
</div>
</body>
</html>
